﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
   public class EM_Bulid
    {
        /// <summary>
        /// 建筑编号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        /// <summary>
        /// 建筑名称
        /// </summary>
        [Required]
        public string? Name { get; set; }

        /// <summary>
        /// 建筑用途
        /// </summary>
        [StringLength(50)]
        [Required]
        public string? Type { get; set; }

        /// <summary>
        /// 楼层
        /// </summary>
        [Required]
        public int Floor{ get; set; }

        /// <summary>
        /// 教室数量
        /// </summary>
        [Required]
        public int RoomNumber { get; set; }
    }
}
